home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.arch.arithmetic,comp.lang.c,comp.lang.c++
- Path: Utrecht.NL.net!news
- From: Franz Korntner <fkorntne@bazis.nl>
- Subject: Re: Access carry flag from C
- X-Nntp-Posting-Host: bastion1.bazis.nl
- Content-Type: text/plain; charset=us-ascii
- Message-ID: <313178D5.41C6@bazis.nl>
- Sender: news@inter.NL.net (News at newsutr)
- Content-Transfer-Encoding: 7bit
- Organization: NLnet
- References: <Dn1C9z.DGv.0.net@indra.com> <1996Feb1922.17.19.879@koobera.math.uic.edu>
- <31298D20.41C6@bazis.nl> <danpop.824859220@rscernix>
- <312AFACE.41C6@bazis.nl> <TANMOY.96Feb21081640@qcd.lanl.gov>
- <312D8414.167E@bazis.nl> <TANMOY.96Feb23101510@qcd.lanl.gov>
- Mime-Version: 1.0
- Date: Mon, 26 Feb 1996 09:09:41 GMT
- X-Mailer: Mozilla 2.0 (X11; I; OSF1 V3.2 alpha)
-
- Tanmoy Bhattacharya wrote:
-
- > I don't understand what you are saying! Have you read the clause?
- >
- > 5.2.4.2 (your 2.2.4.2):
- >
- > A conforming implementation shall document all the limits specified in
- > this subclause.
- >
- > 5.2.4.2.1:
- >
- > The values given below shall be replaced by constant expressions
- > ... Their implementation-defined values shall be greater in magnitude
- > (absolute value) to those shown, with the same sign.
- >
- > ...
- > --- maximum value for an object of type int
- > INT_MAX +32767
- >
- > Is there any doubt as to what this means? The only interpretation I
- > can think of is that INT_MAX is the maximum value of type int, this
- > has to be defined by the implementation, the definition is to be a
- > constant, and this constant has to exceed 32767.
- >
- > It states explicitly that INT_MAX is the maximum value of type int
- > ... how do you read anything else?
-
- As I said, I don't have a copy of the standard at the moment (My
- company is large, and I cant find the only copy). but the following
-
- > The values given below shall be replaced by constant expressions
- > ... Their implementation-defined values shall be greater in magnitude
- > (absolute value) to those shown, with the same sign.
-
- does imply that the implementation defined values (the plysical limit) shall
- be greater than the shown constants. thus INT_MAX is a minimal limit as the
- implementation defined maximum can (and according to the above- will be) larger
- than the constant. Right ?!?
-